import http from "@/api/request.js";

const bastUrl = "/user/user/";
/**
 * 登录
 */
export const phoneLogin = (data) => {
  return http({
    url: `${bastUrl}login`,
    method: "post",
    data,
  });
};

/**
 * 获取验证码
 * @param {*} data
 * @returns
 */
export const getPhoneCode = (data) => {
  return http({
    url: `${bastUrl}getPhoneCode?phoneNum=${data.phoneNum}`,
    method: "get",
  });
};
